/**
 *this class represents the turtle .Its members are position of
 *turtle , pen status and orientation
 **/

public class Turtle{
	public int xPos;
	public int yPos;
	public int orien;
	public short pen;//0 is down ,1 is erase ,2 is up
	//public boolean penErase;
	public final int initialx=300;//initial pos of turtle
	public final int initialy=150;//initial pos of turtle
	public Turtle(){
		xPos=initialx;
		yPos=initialy;
		orien=0;
		pen=0;
		}
	public void setPos(int x,int y){
		xPos=x;
		yPos=y;
		}
	public void setOrientation(int o){
		orien=o;
		}
	public int[] getPos(){
		int[] arr=new int[2];
		arr[0]=xPos;
		arr[1]=yPos;
		return arr;
		}
	public int getOrientation(){
		return orien;
		}
	public static void main(String[] args){
		Turtle t1=new Turtle();
		t1.setPos(10,10);
		t1.setOrientation(90);
		System.out.println("Position is"+t1.getPos()[0]+","+t1.getPos()[1]);
		System.out.println("orientation is"+t1.getOrientation());
		}
	}